package com.eairlv.share.auto.entity.po.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @author eairlv
 * @description
 * @date 16:26 2020/01/10
 */
@Getter
public enum ShareWay {

    YEAR(1, "年"),
    MONTH(2, "月"),
    DAY(3, "日"),
    HOUR(4, "小时"),
    NONE(5, "无分区");

    @EnumValue
    private int code;

    private String description;

    ShareWay(int code, String description) {
        this.code = code;
        this.description = description;
    }
}
